/**
 * 
 */
package com.firebird.oms.constants;

/**
 * @author qiuxj
 * @date 2009-11-21
 *
 */
public class AuthConstants {
	
	public static String LOGIN_ID = "loginid";//登录ID
	public static String LOGIN_NUM = "lognum";//登录次数
	public static String LOGIN_LEVEL = "loglevel";//登录级别
	public static String LOGIN_USERNAME = "username";//用户名
	public static String PASSWD_LAST_CHGDATE = "lastChgPwdTime";//密码最后修改时间
	public static String LOGIN_MESSAGE = "message";//输出消息
	public static String STAFF_ID = "staffId";//员工ID
	public static String UP_STAFF_ID = "upperStaffId";//上级员工ID

	public static final int LONIN_ERROR_MAX = 3;//最大错误次数
	
	public static final int LOGIN_SUCESS_LOG = 1;//登录成功日志
	public static final int LOGIN_ERROR_LOG = 2;//登录错误日志
	public static final int LOGIN_OUT_LOG = 3;//退出系统日志
	
	public static final int STATE_VALID = 1;//状态有效
	public static final int STATE_INVALID = 0;//状态无效
	
	public static final int WORKER_STATE_VALID = 1;//工号状态有效
	public static final int WORKER_STATE_INVALID = 0;//工号状态无效
	public static final int WORKER_STATE_LOCK = 2;//工号状态锁定
	
	public static final int WORKER_LEVEL_ADMIN = 0;//ADMIN账户
	public static final int WORKER_LEVEL_SYSTEM = 1;//系统管理员
	public static final int WORKER_LEVEL_SUPER = 2;//超级用户
	public static final int WORKER_LEVEL_COMMON = 3;//普通用户
	
	public static final String MD5_SALT = AuthConstants.class.toString();//MD5加密SALT
	
	public static final String DEFAULT_PWD = "80bc5ce7e1e0997067c6fc8e9d69761a";//初始密码000000
	
	public static final boolean CAN_CREATE_MORE_LOGIN_CODE = false;//一个员工信息是否可以创建多个工号 

}
